<script type="text/javascript" >
//<![CDATA[
$(document).ready(function() {
	$("#ezbbs_reply_form").validate({
		errorLabelContainer: "#lay_reply_error"
	});
});

function goto_delete_reply(seq)
{
	var pw = $("#ezbbs_reply_delete_form_pw"+seq).val();
	if(pw) document.forms["ezbbs_reply_delete_form"+seq].submit();
	else alert("비밀번호를 입력해주세요");

}

function goto_insert_reply()
{
	if($("#ezbbs_reply_form").valid())
	{
		var f = document.forms['ezbbs_reply_form'];
		f.submit();
	}
}
//]]>
</script>
<div id="lay_board_detail">
<div id="detail_title">
<h2><?php if ($current_record['eb_notice_flag']) { ?><img src="<?=$App->_url_board?>/skin/default/images/<?=strtolower($_set['lang'])?>/notice.gif" alt="" /> <?php } ?><?php if ($current_record['ebcfac_pname']) { ?>[<?=$current_record['ebcfac_pname']?>] <?php } ?><?=$current_record['eb_subject']?> <?php if ($_set['lock_flag'] && $current_record['eb_lock_flag']) { ?><img src="<?=$App->_url_board?>/skin/default/images/lock_1.gif" alt="" /><?php } ?></h2>
</div>

<dl>
<?php if ($_print['no']) { ?>
<dt><?=$_lang['v_no']?></dt>
<dd><?=$current_record['eb_family_seq']?></dd>
<?php } ?>
<?php if ($_print['name']) { ?>
<dt><?=$_lang['name']?></dt>
<dd><?=$current_record['eb_name']?></dd>
<?php } ?>
<?php if ($_print['mid']) { ?>
<dt><?=$_lang['name']?></dt>
<dd><?=$current_record['eb_cid']?></dd>
<?php } ?>
<?php if ($_print['cnt']) { ?>
<dt><?=$_lang['cnt']?></dt>
<dd><?=$current_record['eb_cnt']?></dd>
<?php } ?>
<?php if ($_print['eml']) { ?>
<dt><?=$_lang['eml']?></dt>
<dd><a href="mailto:<?=$current_record['eb_eml']?>"><?=$current_record['eb_eml']?></a></dd>
<?php } ?>
<?php if ($_print['url']) { ?>
<dt><?=$_lang['url']?></dt>
<dd><?=$current_record['eb_url']?></dd>
<?php } ?>
<?php if (count($current_file_list)) { ?>
<dt><?=$_lang['file']?></dt>
<dd>
	<ul style="width:92%">
	<?php foreach ($current_file_list as $k => $v) { ?>
	<li><a href="<?=$App->_url_board?>/index.php?job=download&amp;ebcf_id=<?=$ebcf_id?>&amp;eb_seq=<?=$v['ebfi_ebseq']?>&amp;ebfi_no=<?=$v['ebfi_no']?>" target="form_receiver"><?=$App->icon($v['ebfi_path'])?> <?=$v['ebfi_pname']?> (<?=$_lang['file_size']?> <?=$v['size']?>, <?=$_lang['download']?> : <?=number_format($v['ebfi_cnt'])?>)</a></li>
	<?php } ?>
	</ul>
</dd>
<?php } ?>
</dl>
<div id="lay_ezbbs_contents">
<?php if (count($current_file_list)) { ?>
<ul>
<?php foreach ($current_file_list as $v) { ?>
	<?php if ($v['ebfi_include'] || $_set['gallery_flag']) { ?>
	<li>
	<a href='#' onclick="goto_ezbbs_image_view(<?=$v['ebfi_ebseq']?>, <?=$v['ebfi_no']?>, <?=$v['ebfi_width']?>, <?=$v['ebfi_height']?>);"><img src="<?=$EzbbsFile->_url.$v['thumbnail']?>" width="<?=$v['dw']?>" alt="" /></a></li>
	<?php } else { ?>
	<li></li>
	<?php } ?>
<?php } ?>
</ul>
<?php } ?>
<?=$current_record['eb_txt']?>
</div>
<dl>
<?php foreach ($add_column_list as $v) { ?>
<dt><?=$v['ebcfad_pname']?></dt>
<dd><?=nl2br($String->htmlchars($add_value_list[$v['ebcfad_id']]['ebad_txt']))?>&nbsp;</dd>
<?php } ?>
<?php if (count($current_link_list)) { ?>
<dt><?=$_lang['link']?></dt>
<dd>
<ul>
<?php foreach ($current_link_list as $k => $v) { ?>
<li><a href="<?=$v['ebln_path']?>" target='_blank'><?=$v['ebln_path']?></a></li>
<?php } ?>
</ul>
</dd>
<?php } ?>
<?php if ($_print['cdate']) { ?>
<dt><?=$_lang['cdate']?></dt>
<dd><?=$current_record['eb_ctime']?></dd>
<?php } ?>
<?php if ($_print['udate']) { ?>
<dt><?=$_lang['udate']?></dt>
<dd><?=$current_record['eb_utime']?></dd>
<?php } ?>
<?php if ($_print['cip']) { ?>
<dt><?=$_lang['cip']?></dt>
<dd><?=$current_record['eb_cip']?></dd>
<?php } ?>
<?php if ($_print['uip']) { ?>
<dt><?=$_lang['uip']?></dt>
<dd><?=$current_record['eb_uip']?></dd>
<?php } ?>
<?php if ($_print['uip']) { ?>
<dt><?=$_lang['uip']?></dt>
<dd><?=$current_record['eb_uip']?></dd>
<?php } ?>
</dl>
<div id="lay_board_search">
<ul id="lay_board_list_util">
<?php if ($_btn['answer']) { ?><li><a href="<?=$_SERVER['PHP_SELF']?>?job=insert&amp;<?=http_build_query($paras, '', '&amp;')?>&amp;eb_seq=<?=$eb_seq?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_answer.gif" alt="<?=$_lang['answer']?>" /></a></li><?php } ?>
<?php if ($_btn['write']) { ?><li><a href="<?=$_SERVER['PHP_SELF']?>?job=insert&amp;<?=http_build_query($paras, '', '&amp;')?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_write.gif" alt="<?=$_lang['write']?>" /></a></li><?php } ?>
<?php if ($_btn['modify']) { ?><li><a href="<?=$_SERVER['PHP_SELF']?>?job=update&amp;<?=http_build_query($paras, '', '&amp;')?>&amp;eb_seq=<?=$eb_seq?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_modify.gif" alt="<?=$_lang['modify']?>" /></a></li><?php } ?>
<?php if ($_btn['delete']) { ?><li><a href="<?=$_SERVER['PHP_SELF']?>?job=delete&amp;<?=http_build_query($paras, '', '&amp;')?>&amp;eb_seq=<?=$eb_seq?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_delete.gif" alt="<?=$_lang['delete']?>" /></a></li><?php } ?>
<?php if ($_btn['list']) { ?><li><a href="<?=$_SERVER['PHP_SELF']?>?job=list&amp;<?=http_build_query($paras, '', '&amp;')?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_list.gif" alt="<?=$_lang['list']?>" /></a></li><?php } ?>
</ul>
</div>
</div>

<?php if ($_set['reply_flag']) { ?>
<div id="lay_board_reply">
 <form name="ezbbs_reply_form" id="ezbbs_reply_form" method="post" action="<?=$EzbbsManager->get_url_root()?>/index.php" target="form_receiver" onsubmit="goto_insert_reply(); return false;">
 <dl class="lay_reply_frm">
 <dt>이름</dt>
 <dd><input type="text" name="ebrp_name" size='20' maxlength='20'  value="<?=$User->get_name()?>" class="cla_input_border required" title="이름을 입력해주세요 / "/>
 </dd>
<?php if (!$User->is_login()) { ?>
 <dt>비밀번호</dt>
 <dd><input type="password" name="ebrp_pw" size='20' maxlength='20'  class="cla_input_border required" title="비밀번호를 입력해주세요 / "/></dd>
 <?php } ?>
 <dd class="cla_reply_txt"><textarea name="ebrp_txt" id="ebrp_txt" rows="3" cols="50" class="cla_input_border required" title="내용을 입력해주세요"></textarea> <p id="btn07" ><a href="/" onclick="goto_insert_reply(); return false;" /><img src="/ezbbs/skin/default/images/icon_reply.gif" alt="덧글입력" /></a></p><br/><span id="lay_reply_error"></span></dd>
</dl>
<input type='hidden' name='job' value='reply' />
<input type='hidden' name='subjob' value='insert' />
<input type='hidden' name='ebcf_id' value="<?=$ebcf_id?>" />
<input type='hidden' name='eb_seq' value='<?=$eb_seq?>' />
</form>
<?php if (count($reply_list)) { ?>
<ul id="lay_reply_list">
<?php foreach ($reply_list as $k => $v) { ?>
<li>
<dl class="lay_reply_list_info">
<dt><?=$v['ebrp_name']?> <span>(<?=date('Y-m-d H:i:s', $v['ebrp_time'])?>)</span></dt>
<dd class="lay_reply_list_txt"><?=$v['ebrp_txt']?></dd>
<dd class="lay_reply_list_pw">
<?php if ($v['auth']) { ?>
<p id="btn01"><a href="<?=$EzbbsManager->get_url_root()?>/index.php?mid=<?=$mid?>&job=reply&subjob=update_form&ebcf_id=<?=$ebcf_id?>&eb_seq=<?=$eb_seq?>&ebrp_serial=<?=$v['ebrp_serial']?>" onclick="window.open(this.href, '', 'width=490,height=295,scrollbars=no');return false;">수정</a></p>
<p id="btn01"><a href="#" onclick="goto_ezbbs_reply_delete(<?=$v['ebrp_ebseq']?>, <?=$v['ebrp_serial']?>); return false;">삭제</a></p>
<?php } else { ?>
<p id="btn01"><a href="<?=$EzbbsManager->get_url_root()?>/index.php?mid=<?=$mid?>&job=reply&subjob=auth&ebcf_id=<?=$ebcf_id?>&eb_seq=<?=$eb_seq?>&ebrp_serial=<?=$v['ebrp_serial']?>&logic=update" target="form_receiver">수정</a></p>
<p id="btn01"><a href="<?=$EzbbsManager->get_url_root()?>/index.php?mid=<?=$mid?>&job=reply&subjob=auth&ebcf_id=<?=$ebcf_id?>&eb_seq=<?=$eb_seq?>&ebrp_serial=<?=$v['ebrp_serial']?>&logic=delete" target="form_receiver">삭제</a></p>
<?php } ?>
</dd>
</dl>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>